const formDataTime = () => {

  const dt = new Date()
  let y = dt.getFullYear()
  let m = dt.getMonth() + 1
  // 添加前导0 不满足2位，则添加前导0  padStar=》es6提供
  m = (m+'').padStart(2,'0')
  let d = dt.getDate()

  return `${y}-${m}-${d}`
}

module.exports = {
  formDataTime
}